import { createApp } from 'vue'
import App from '@/App.vue'
import 'normalize.css/normalize.css'
import router from "@/router/index"
import ElementPlus from 'element-plus'
import { initMqtt } from '@/mqtt/index'
import 'element-plus/dist/index.css'
import "echarts"; // 全局引入echarts
import echarts from 'echarts/lib/echarts.js';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// import 'echarts/map/js/china.js'
import '@/assets/css/global.css'
import '@/assets/iconfont/iconfont.css'
import '@/assets/iconfont01/iconfont.css'
import 'normalize.css/normalize.css'
import '@/assets/styles/common.css'
import '@/assets/styles/index.scss'
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
initMqtt();
app.use(ElementPlus)
app.component('v-chart', echarts)
app.use(router);
app.mount('#app');